const router = require('koa-router')()
const Controller = require('../controllers/hanziPinyinController')

router.prefix('/pinyin')

router.get('/', Controller.getAllHanziPinyins)
router.get('/:id', Controller.getHanziPinyinById)
router.post('/', Controller.createHanziPinyin)
router.put('/:id', Controller.updateHanziPinyin)
router.delete('/:id', Controller.deleteHanziPinyin)

module.exports = router